﻿<UserControl x:Class="WPF_Media_Player.TextScroller"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    Width="200" Height="20">
    <UserControl.Resources>
        <Storyboard x:Key="scrollStoryboard" >
            <DoubleAnimation Name="daMoveMessage"
                    Storyboard.TargetName="message" 
                    Storyboard.TargetProperty="(Canvas.Left)" 
                    To="-140" 
                    Duration="0:0:5"
                    RepeatBehavior="Forever"
                    />
        </Storyboard>
    </UserControl.Resources>
    <Canvas Name="LayoutRoot" Clip="M 0,0 h 200 v 20 h -200 z">
        <TextBlock 
            x:Name="message" 
            Text="音乐加载中..." 
            TextWrapping="NoWrap"
            Canvas.Left="0">
        </TextBlock>
    </Canvas>
</UserControl>
